<div id="role-manage-view">
    <div class="page">
        <div class="al-list-container">
            <form class="form-horizontal al-search-container" role="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label">参数名称</label>
                    <div class="col-sm-4">
                        <input class="form-control" ng-model="search.name" type="text" placeholder=""/>
                    </div>
                    <div class="col-sm-2"></div>
                    <div class="col-sm-2">
                        <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
                    </div>
                    <div class="col-sm-2">
                        <button type="button" class="btn btn-primary" ng-click="newRole()">新建字典</button>
                    </div>
                </div>
            </form>
            <table ng-table="tableParams"
                   class="table  table-bordered table-striped table-condensed al-table-container">
                <thead>
                <tr>
                    <td>参数名称</td>
                    <td>字典名称</td>
                    <td>字典编码</td>
                    <td>描述</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in $data">
                    <td>{{paramsName}}</td>
                    <td>{{item.name}}</td>
                    <td>{{item.code}}</td>
                    <td>{{item.remark}}</td>
                    <td>{{item.enabled |constantTransfer:enabledList}}</td>
                    <!--<td>{{item.createTime|dateTransfer:'YYYY年MM月DD日 HH:mm:ss'}}</td>-->
                    <td>
                        <button class="btn btn-warning btn-sm" ng-click="editRole(item)">编辑</button>
                        <button class="btn btn-danger btn-sm"
                                ng-confirm-click="确定要执行删除操作吗？"
                                ng-click="deleteRole(item)">删除</button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>